package com.xmh.myutil.othertest;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Ree {
    private final static SimpleDateFormat sdf = new SimpleDateFormat("dd");

    public static void main(String[] args) {
        Date six = new Date(new Date().getTime() + 1000 * 60 * 60 * 24 * 3L);

        long dayTime = 1000 * 60 * 60 * 24 * 7L;

        int single = 0, double1 = 1;

        for (int i = 0; i < 6; i++) {
            six = new Date(six.getTime() + dayTime);

            if (Integer.parseInt(sdf.format(six)) % 2 == 0) {
                double1++;
            } else {
                single++;
            }
            assert single != 1;
        }
        System.out.println("single:" + single + "\ndouble:" + double1);
    }
}
